<?php

class JConstant extends Enum {
	public static function classref($i) { return new JConstant("classref", 5, array($i)); }
	public static function dbl($v) { return new JConstant("dbl", 4, array($v)); }
	public static function dyninfo($b, $nt) { return new JConstant("dyninfo", 13, array($b, $nt)); }
	public static function fieldref($c, $nt) { return new JConstant("fieldref", 10, array($c, $nt)); }
	public static function flt($v) { return new JConstant("flt", 3, array($v)); }
	public static function i32($v) { return new JConstant("i32", 1, array($v)); }
	public static function i64($v) { return new JConstant("i64", 2, array($v)); }
	public static function imethodref($c, $nt) { return new JConstant("imethodref", 9, array($c, $nt)); }
	public static function methodhandle($k, $r) { return new JConstant("methodhandle", 11, array($k, $r)); }
	public static function methodref($c, $nt) { return new JConstant("methodref", 8, array($c, $nt)); }
	public static function methodtype($di) { return new JConstant("methodtype", 12, array($di)); }
	public static function nameandtype($n, $t) { return new JConstant("nameandtype", 7, array($n, $t)); }
	public static function str($v) { return new JConstant("str", 0, array($v)); }
	public static function stringref($i) { return new JConstant("stringref", 6, array($i)); }
	public static $__constructors = array(5 => 'classref', 4 => 'dbl', 13 => 'dyninfo', 10 => 'fieldref', 3 => 'flt', 1 => 'i32', 2 => 'i64', 9 => 'imethodref', 11 => 'methodhandle', 8 => 'methodref', 12 => 'methodtype', 7 => 'nameandtype', 0 => 'str', 6 => 'stringref');
	}
